﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace KingCat
{
    public partial class Chat : Form
    {
        public Chat()
        {
            InitializeComponent();
            this.skinEngine1.SkinFile = "SkinFiles/Page/PageColor2.ssk";
        
        }

        private void Chat_Load(object sender, EventArgs e)
        {

        }

        private void 推出ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 个人设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 密码修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PasswordModify pm = new PasswordModify();
            pm.ShowDialog();
        }

        private void progressBar1_Click(object sender, EventArgs e)
        {

        }

        private void 隐藏ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
        }

        private void fontToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FontDialog fd = new FontDialog();
            if (fd.ShowDialog() == DialogResult.OK)
            {
                richTextBox1.SelectionFont = fd.Font;
                MsgSend.Font = fd.Font;
            }

        }

        private void colorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ColorDialog cd = new ColorDialog();
            if (cd.ShowDialog() == DialogResult.OK)
            {
                richTextBox1.SelectionColor = cd.Color;
                
            }
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {

        }

        private void statusBar1_PanelClick(object sender, StatusBarPanelClickEventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {

            statusBarPanel6.Text = DateTime.Now.ToString();
            
        }
    }
}